﻿using ImageProcessing.Model.DataCenter;

using System.IO;
using System.Threading.Tasks;

namespace ImageProcessing.DataCenters
{
    /// <summary>
    /// 数据中心接口
    /// </summary>
    public interface IDataCenter
    {
        public Task<DCUploadRetParMsg> UploadAsync(MemoryStream memoryStream);

        /// <summary>
        /// 下载文件
        /// </summary>
        /// <param name="fileId">文件id</param>
        /// <returns></returns>
        Task<Stream> Download(string fileId);
    }
}